import { Layout, Spin, Icon, Badge, Dropdown, Affix, Row, Col, Modal, Input } from "antd";
import Link from "umi/link";
import router from "umi/router";
import "./index.scss";
import { connect } from "dva";
import React, { Component } from "react";


const { Header, Footer, Content } = Layout;
const userinfo = JSON.parse(localStorage.getItem('userinfo'));
@connect(state => ({
  isLoading: state.common.isLoading
}),
{
  
})
class App extends Component {
  state = {
    
  };
  componentDidMount() {
    
  }
  
  render() {
    
    return (
      <div className="IM-box">
        <div className="IM-content">{this.props.children}</div>
        {this.props.isLoading?<div className="loading"><div className="content"></div><Spin size="large"/></div>:""}
      </div>
    );
  }
}
export default App;
